From 8b6d448c66c8119bb85ca2547b35e9d135a61827 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 20 May 2011 09:11:54 +0100 Subject: [PATCH] x86/AMD: don't set ARAT feature flag on family F CPUs Following Linux commit 14fb57dccb6e1defe9f89a66f548fcb24c374c1d from Borislav Petkov. Signed-off-by: Jan Beulich --- xen/arch/x86/cpu/amd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/cpu/amd.c b/xen/arch/x86/cpu/amd.c index 7255e0ebba..3fa15ccb60 100644 --- a/xen/arch/x86/cpu/amd.c +++ b/xen/arch/x86/cpu/amd.c @@ -475,7 +475,7 @@ static void __devinit init_amd(struct cpuinfo_x86 *c) #endif /* As a rule processors have APIC timer running in deep C states */ - if (c->x86 >= 0xf && !cpu_has_amd_erratum(c, AMD_ERRATUM_400)) + if (c->x86 > 0xf && !cpu_has_amd_erratum(c, AMD_ERRATUM_400)) set_bit(X86_FEATURE_ARAT, c->x86_capability); /* Prevent TSC drift in non single-processor, single-core platforms. */ -- 2.30.2